package com.tmans.common;

public class PageData {
	private int prevPage;
	private int pageBlock;
	private int nextPage;
	private int totalPage;
	private int cpage;	
	private int startPage;
	private int endPage;
	
	
	public int getStartPage() {return startPage;}
	public void setStartPage(int startPage) {this.startPage = startPage;}
	
	public int getEndPage() {return endPage;}
	public void setEndPage(int endPage) {	this.endPage = this.getTotalPage();	}	
	
	public int getPrevPage() {return prevPage;}	
	public void setPrevPage() {this.prevPage = this.getCpage();	}
	
	public int getPageBlock() {return pageBlock;}
	public void setPageBlock(int pageBlock) {this.pageBlock = pageBlock;}
	
	public int getNextPage() {return nextPage;}
	public void setNextPage() {this.nextPage = this.getEndPage()-this.getCpage()-1;}
	
	public int getTotalPage() {return totalPage;}
	public void setTotalPage(int totalPage) {this.totalPage = totalPage;}
	
	public int getCpage() {return cpage;}
	public void setCpage(int cpage) {this.cpage = cpage;}
}
